﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/Company.master" AutoEventWireup="true"
    CodeFile="CompetePrice.aspx.cs" Inherits="Company_CompetePrice" %>

<%@ Register Src="../Share/CompanyNavigation.ascx" TagName="CompanyNavigation" TagPrefix="uc1" %>
<%@ Register Src="../Share/WebTimer.ascx" TagName="WebTimer" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../lib/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../lib/css/table.css" rel="stylesheet" type="text/css" />

    <script src="../lib/script/jquery.min.js" type="text/javascript"></script>

    <script src="../lib/script/table.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="maincontent">
        <div id="content-top">
            <div id="content-top-title">
                <div id="content-top-img">
                    <img src="../lib/images/content-content-top-title.gif" /></div>
                当前功能：竞价报价</div>
        </div>
        <uc1:CompanyNavigation ID="CompanyNavigation1" runat="server" BidType="Compete" ActiveLink="BidLink" />
        <div id="divbidinfo">
            <asp:Literal runat="server" ID="bidinfo" Text="竞价不得高于上轮报价，当前竞价轮次：第一轮。未报价按上轮报价处理。"></asp:Literal>
        </div>
        <asp:Label runat="server" Text="当前竞价轮次：第一轮。"></asp:Label>
        <asp:Panel runat="server" ID="panSeach">
            <table>
                <tr>
                    <td>
                        通用名
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtProdcutName"></asp:TextBox>
                    </td>
                    <td>
                        剂型
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtMedicineModel"></asp:TextBox>
                    </td>
                    <td>
                        规格
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtOutlookc"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        生产企业
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtCompanyName_Sc"></asp:TextBox>
                    </td>
                    <td>
                        报价状态
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlBidStatus">
                            <asp:ListItem Selected="True" Value="0">全部</asp:ListItem>
                            <asp:ListItem Value="1">未报价</asp:ListItem>
                            <asp:ListItem Value="2">已报价</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button runat="server" ID="btnSearch" Text="查询" OnClick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <div id="bids" style="margin: 10px 0px 10px 0px">
            <HZ:HzPager runat="server" ID="pager1" OnPageChanging="pager1_PageChanging" ShowFirstLast="True" />
            <asp:GridView runat="server" ID="gvbidprice" AutoGenerateColumns="False" Width="100%"
                CssClass="tbresult">
                <Columns>
                    <asp:BoundField DataField="BidId" HeaderText="投标编号" HeaderStyle-CssClass="hide" ItemStyle-CssClass="hide" />
                    <asp:BoundField DataField="Company_Goods" HeaderText="流水号" />
                    <asp:BoundField DataField="ProductName" HeaderText="通用名" />
                    <asp:BoundField DataField="Model" HeaderText="剂型" />
                    <asp:BoundField DataField="Outlookc" HeaderText="规格" />
                    <asp:BoundField DataField="PackUnit" HeaderText="单位" />
                    <asp:BoundField DataField="CompanyName_sc" HeaderText="生产企业" />
                    <asp:BoundField DataField="QualityLevelName" HeaderText="竞价组" />
                    <asp:BoundField DataField="PackFactor" HeaderText="包装数量" />
                    <asp:TemplateField HeaderText="报价">
                        <ItemTemplate>
                            <asp:TextBox runat="server" AutoCompleteType="Disabled" ID="txtBidPrice" Width="48px"
                                Text='<%# Eval("CompeteDecPrice","{0:F3}") %>'></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="上轮报价">
                        <ItemTemplate>
                            <asp:Label runat="server" ForeColor="Red" ID="LimitPrice" Text='<%# Eval("PreCompetePrice") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div id="divsubmit">
            <asp:Button runat="server" ID="btnSubmitPrice" Text="提交报价" OnClick="btnSubmitPrice_Click" />
        </div>
    </div>
</asp:Content>
